package com.lagou.edu.dao;

import com.lagou.edu.pojo.AuthCode;
import org.springframework.data.jpa.repository.JpaRepository;

import java.time.LocalDateTime;

public interface AuthCodeDao extends JpaRepository<AuthCode,Long> {

    AuthCode findByEmailAndExpiretimeAfter(String email, LocalDateTime expiretime);

}